package cn.springbook.common.core.enums;

import cn.springbook.common.core.domain.BaseEnum;

/**
 * <p>
 * 删除状态枚举
 * </p>
 *
 * @author: caifenglin
 * @date: 2021/7/2 16:01
 */
public enum DeleteEnum implements BaseEnum<Integer> {

    NORMAL(0, "正常"),

    DELETED(1, "删除");

    private int code;

    private String message;

    DeleteEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }

    @Override
    public Integer getValue() {
        return this.code;
    }
}
